package some

import (
	"gitee.com/thubcc/p2pgit/classedpack"
	"gitee.com/thubcc/p2pgit/types"
)

// Geter2Asyncer Con
func Geter2Asyncer(gs types.SomeGeter) (ps types.SomeAsyncer) {
	for _, v := range gs {
		if cpf, ok := v.(*classedpack.File); ok {
			var pf types.Asyncer = cpf
			ps = append(ps, pf)
		}
	}
	return
}
